package com.shop.shopcommon.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "shop.websocket")
public class WebSocketProperties {
    // 向搜索框推荐的词条数量
    private Integer searchBoxNumber = 5; // 设置默认值为5
    // 向搜索列表推荐的词条数量
    private Integer searchIndexNumber = 5; // 设置默认值为5

}
